package jkoa.core;

import java.util.ArrayList;
import java.util.List;

public class App {

	private static App app;

	public static App me() {
		if (app == null) {
			app = new App();
		}
		return app;
	};

	public App() {
		app = this;
	}

	public List<Middleware> middlewares = new ArrayList<>();

	public App use(Middleware middleware) {
		middlewares.add(middleware);
		return this;
	}

}
